﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Xiaov.SmartWeb.Infrastructure.Config;
using Xiaov.SmartWeb.Infrastructure.ExtMethod;
using Xiaov.SmartWeb.Model.Domain;

namespace Xiaov.SmartWeb.Application.SysAdmin.Json
{
    public partial class Plugin : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Clear();
            //获取plugin目录下的所有rar
            string path = HttpContext.Current.Server.MapPath(WebAppConfig.PluginPath);
            FileView fv = new FileView();
            List<FileView> list = fv.GetFileListByExtentionName(path, ".zip");
            Response.Write(list.ToJson());
            Response.End();
        }
    }
}